home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 April: Mac OS SDK / Dev.CD Apr 97 SDK1.toast / Development Kits (Disc 1) / Interfaces&Libraries / Interfaces / PInterfaces / ConnectionTools.p < prev    next >
Encoding:
Text File  |  1995-07-06  |  3.6 KB  |  164 lines  |  [TEXT/MPS ]

  1. {
  2.      File:        ConnectionTools.p
  3.  
  4.      Contains:    Communications Toolbox Connection Tools Interfaces.
  5.  
  6.      Version:    Technology:    System 7.5
  7.                  Package:    Universal Interfaces 2.1 in “MPW Latest” on ETO #18
  8.  
  9.      Copyright:    © 1984-1995 by Apple Computer, Inc.
  10.                  All rights reserved.
  11.  
  12.      Bugs?:        If you find a problem with this file, use the Apple Bug Reporter
  13.                  stack.  Include the file and version information (from above)
  14.                  in the problem description and send to:
  15.                      Internet:    apple.bugs@applelink.apple.com
  16.                      AppleLink:    APPLE.BUGS
  17.  
  18. }
  19.  
  20. {$IFC UNDEFINED UsingIncludes}
  21. {$SETC UsingIncludes := 0}
  22. {$ENDC}
  23.  
  24. {$IFC NOT UsingIncludes}
  25.  UNIT ConnectionTools;
  26.  INTERFACE
  27. {$ENDC}
  28.  
  29. {$IFC UNDEFINED __CONNECTIONTOOLS__}
  30. {$SETC __CONNECTIONTOOLS__ := 1}
  31.  
  32. {$I+}
  33. {$SETC ConnectionToolsIncludes := UsingIncludes}
  34. {$SETC UsingIncludes := 1}
  35.  
  36.  
  37. {$IFC UNDEFINED __WINDOWS__}
  38. {$I Windows.p}
  39. {$ENDC}
  40. {    Types.p                                                        }
  41. {        ConditionalMacros.p                                        }
  42. {    Memory.p                                                    }
  43. {        MixedMode.p                                                }
  44. {    Quickdraw.p                                                    }
  45. {        QuickdrawText.p                                            }
  46. {    Events.p                                                    }
  47. {        OSUtils.p                                                }
  48. {    Controls.p                                                    }
  49. {        Menus.p                                                    }
  50.  
  51. {$IFC UNDEFINED __DIALOGS__}
  52. {$I Dialogs.p}
  53. {$ENDC}
  54. {    Errors.p                                                    }
  55. {    TextEdit.p                                                    }
  56.  
  57. {$IFC UNDEFINED __CONNECTIONS__}
  58. {$I Connections.p}
  59. {$ENDC}
  60. {    CTBUtilities.p                                                }
  61. {        StandardFile.p                                            }
  62. {            Files.p                                                }
  63. {                Finder.p                                        }
  64. {        AppleTalk.p                                                }
  65.  
  66. {$PUSH}
  67. {$ALIGN MAC68K}
  68. {$LibExport+}
  69.  
  70. CONST
  71. { messages for DefProc }
  72.     cmInitMsg                    = 0;
  73.     cmDisposeMsg                = 1;
  74.     cmSuspendMsg                = 2;
  75.     cmResumeMsg                    = 3;
  76.     cmMenuMsg                    = 4;
  77.     cmEventMsg                    = 5;
  78.     cmActivateMsg                = 6;
  79.     cmDeactivateMsg                = 7;
  80.     cmIdleMsg                    = 50;
  81.     cmResetMsg                    = 51;
  82.     cmAbortMsg                    = 52;
  83.     cmReadMsg                    = 100;
  84.     cmWriteMsg                    = 101;
  85.     cmStatusMsg                    = 102;
  86.     cmListenMsg                    = 103;
  87.     cmAcceptMsg                    = 104;
  88.     cmCloseMsg                    = 105;
  89.     cmOpenMsg                    = 106;
  90.     cmBreakMsg                    = 107;
  91.     cmIOKillMsg                    = 108;
  92.     cmEnvironsMsg                = 109;
  93. { new connection tool messages for ctb 1.1 }
  94.     cmNewIOPBMsg                = 110;
  95.     cmDisposeIOPBMsg            = 111;
  96.     cmGetErrorStringMsg            = 112;
  97.     cmPBReadMsg                    = 113;
  98.     cmPBWriteMsg                = 114;
  99.     cmPBIOKillMsg                = 115;
  100. {    messages for validate DefProc    }
  101.     cmValidateMsg                = 0;
  102.     cmDefaultMsg                = 1;
  103. {    messages for Setup DefProc    }
  104.     cmSpreflightMsg                = 0;
  105.     cmSsetupMsg                    = 1;
  106.     cmSitemMsg                    = 2;
  107.     cmSfilterMsg                = 3;
  108.     cmScleanupMsg                = 4;
  109. {    messages for scripting defProc    }
  110.     cmMgetMsg                    = 0;
  111.     cmMsetMsg                    = 1;
  112. {    messages for localization defProc    }
  113.     cmL2English                    = 0;
  114.     cmL2Intl                    = 1;
  115.  
  116. { private data constants }
  117.     cdefType                    = 'cdef';                        { main connection definition procedure }
  118.     cvalType                    = 'cval';                        { validation definition procedure }
  119.     csetType                    = 'cset';                        { connection setup definition procedure }
  120.     clocType                    = 'cloc';                        { connection configuration localization defProc }
  121.     cscrType                    = 'cscr';                        { connection scripting defProc interfaces }
  122.     cbndType                    = 'cbnd';                        { bundle type for connection }
  123.     cverType                    = 'vers';
  124.  
  125.  
  126. TYPE
  127.     CMDataBuffer = RECORD
  128.         thePtr:                    Ptr;
  129.         count:                    LONGINT;
  130.         channel:                CMChannel;
  131.         flags:                    CMFlags;
  132.     END;
  133.  
  134.     CMDataBufferPtr = ^CMDataBuffer;
  135.  
  136.     CMCompletorRecord = RECORD
  137.         async:                    BOOLEAN;
  138.         completionRoutine:        ConnectionCompletionUPP;
  139.     END;
  140.  
  141.     CMCompletorPtr = ^CMCompletorRecord;
  142.  
  143. {    Private Data Structure    }
  144.     CMSetupStruct = RECORD
  145.         theDialog:                DialogPtr;
  146.         count:                    INTEGER;
  147.         theConfig:                Ptr;
  148.         procID:                    INTEGER;                                { procID of the tool    }
  149.     END;
  150.  
  151.     CMSetupPtr = ^CMSetupStruct;
  152.  
  153.  
  154. {$ALIGN RESET}
  155. {$POP}
  156.  
  157. {$SETC UsingIncludes := ConnectionToolsIncludes}
  158.  
  159. {$ENDC} {__CONNECTIONTOOLS__}
  160.  
  161. {$IFC NOT UsingIncludes}
  162.  END.
  163. {$ENDC}
  164.